function incar(gid, uid, num) {
	//alert(gid + ',' + uid + ',' + num);
	if(gid <= 0 || uid <= 0 || num <= 0 ){
		alert('错误,拒绝加放购物车!');
		return false;
	}
	
	$.post("ajax/incar.php", {
		eve: 1 //表示加购物车
		,uid: uid
		,gid: gid
		,num: num
	}, function(data, textStatus, reXML) {
		//var obj = eval(data);
		alert(data);
	}, "text");

}

$(function(){
	$('.info .ul1 .toright').click(function(){
		//alert('aa');
		$('.info .ul1 .minimgs').scrollLeft($('.info .ul1 .minimgs').scrollLeft()+58*4+10);
	});
	$('.info .ul1 .toleft').click(function(){
		//alert('aa');
		$('.info .ul1 .minimgs').scrollLeft($('.info .ul1 .minimgs').scrollLeft()-58*4-10);
	});
	$('.minimgs img').click(function(){
		$('.bigimg').attr('src',$(this).attr('src'));
	});
	
	
});
